package com.yanchi.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yanchi
 * @date 2022/1/18 11:35
 */
@FeignClient(value = "HYSTRIX",fallback = HystrixClientFallBack.class)
public interface HystrixClient {

    /**
     * 调用测试Hystrix模块的demo的服务
     * @param id
     * @return
     */
    @GetMapping("demo")
    String demo(@RequestParam("id") Integer id);

}
